<div class="widget-content">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'member-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array('class'=>'form-horizontal', 'novalidate'=>'novalidate'),
)); ?>

	<?php if($form->errorSummary($model)):?>
			<div class="alert alert-block">
				<a class="close" data-dismiss="alert" href="#">&times;</a>
				<h4 class="alert-heading"><?php echo $form->errorSummary($model); ?></h4>
			</div>
	<?php endif;?>
	<fieldset>
	<div class="control-group">
		<?php echo $form->labelEx($model,'username',array('class'=>'control-label','for'=>'username')); ?>
		<div class="controls">
		<?php echo $form->textField($model,'username',array('size'=>20,'maxlength'=>20,'class'=>'input-large disabled','disabled'=>'disabled')); ?>
		<?php echo $form->error($model,'username'); ?>
		</div>
	</div>
	<?php echo $form->hiddenField($model,'password',array('size'=>60,'maxlength'=>100,'class'=>'input-large')); ?>
	<div class="control-group">
		<?php echo $form->labelEx($model,'activedate',array('class'=>'control-label','for'=>'activedate')); ?>
		<div class="controls">
		<?php echo $form->textField($model,'activedate',array('class'=>'input-large disabled','disabled'=>'disabled')); ?>
		<?php echo $form->error($model,'activedate'); ?>
		</div>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'amount',array('class'=>'control-label','for'=>'amount')); ?>
		<div class="controls">
		<div class="input-prepend input-append">
			<?php echo $form->textField($model,'amount',array('size'=>20,'maxlength'=>20,'class'=>'span2')); ?>
			<span class="add-on">Đồng</span>
		</div>
		<?php echo $form->error($model,'amount'); ?>
		</div>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'active',array('class'=>'control-label','for'=>'active')); ?>
		<div class="controls">
		<div class="btn-group" data-toggle="buttons-radio">
				<button onclick="document.getElementById('Member_active').value=1;return false;" class="btn btn-primary <?php if($model->active!='0'){echo 'active';}?>">True</button>
				<button onclick="document.getElementById('Member_active').value=0;return false;" class="btn btn-primary <?php if($model->active=='0'){echo 'active';}?>">False</button>
		</div>
		<?php echo $form->hiddenField($model,'active'); ?>
		<?php echo $form->error($model,'active'); ?>
		</div>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'vip',array('class'=>'control-label','for'=>'vip')); ?>
		<div class="controls">
		<div class="btn-group" data-toggle="buttons-radio">
				<button onclick="document.getElementById('Member_vip').value=1;return false;" class="btn btn-primary <?php if($model->vip!='0'){echo 'active';}?>">True</button>
				<button onclick="document.getElementById('Member_vip').value=0;return false;" class="btn btn-primary <?php if($model->vip=='0'){echo 'active';}?>">False</button>
		</div>
		<?php echo $form->hiddenField($model,'vip'); ?>
		<?php echo $form->error($model,'vip'); ?>
		</div>
	</div>

	<div class="form-actions">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save',array('class'=>'btn btn-primary btn-large')); ?>
		<?php echo CHtml::link('Cancel',array('/member/admin'),array('class'=>'btn btn-large')); ?>
	</div>
	</fieldset>
<?php $this->endWidget(); ?>
</div><!-- form -->